﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
namespace WPFExcelReport.Chart
{
    public class SeriesData : ViewModelBase
    {
        private string _SeriesDisplayName; public string SeriesDisplayName { get { return _SeriesDisplayName; } set { _SeriesDisplayName = value; OnPropertyChanged("SeriesDisplayName", value); } }
        private string _SeriesDescription; public string SeriesDescription { get { return _SeriesDescription; } set { _SeriesDescription = value; OnPropertyChanged("SeriesDescription", value); } }
        private ObservableCollection<ChartClass> _Items; public ObservableCollection<ChartClass> Items { get { return _Items; } set { _Items = value; OnPropertyChanged("Items", value); } }
        public SeriesData()
        {
            _Items = new ObservableCollection<ChartClass>();
        }
    }
    public class ChartClass : ViewModelBase
    {
        private string _Category; public string Category { get { return _Category; } set { _Category = value; OnPropertyChanged("Category", value); } }
        private double _Number; public double Number { get { return _Number; } set { _Number = value; OnPropertyChanged("Number", value); } }
        public ChartClass()
        {
            Category = "";
            Number = 0;
        }
    }
    public class ChartClass2 : ViewModelBase
    {
        private string _Category; public string Category { get { return _Category; } set { _Category = value; OnPropertyChanged("Category", value); } }
        private double _Number; public double Number { get { return _Number; } set { _Number = value; OnPropertyChanged("Number", value); } }

        public double High { get; set; }
        public double Low { get; set; }
        public ChartClass2()
        {
            Category = "";
            High = 0;
            Low = 0;
        }
    }
    public class Sample
    {
        public string Name { get; set; }
        public string URL { get; set; }
        public string Discription { get; set; }
        public UserControl UISample { get; set; }
    }
}
